<?php
namespace app\modules\common\components;

use Yii;

class YiiLog
{
    public static function info(string $msg)
    {
        Yii::info($msg, "myinfo");
    }

    public static function formatInfo(string $msg)
    {
        $debugTrace = debug_backtrace();
        $logInfo = new LogFormat("info", $debugTrace[1]['class']."\\".$debugTrace[1]['function'], $debugTrace[0]['line'], $msg);
        self::info($logInfo->format());
        unset($logInfo);
    }
}
